How to change BrowserRouter and HashRouter depend on variable

visit shbcf.ru